package com.twq.corejava;

import java.util.Random;

public class TestRandom {
    public static void main(String[] args) {
        // 产生随机数的类
        Random random = new Random();
        // 返回的值是在 [0, 30)
        int i = random.nextInt(100);
        System.out.println(i);
    }
}
